package com.ruoyi.ucar.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value = "公共的响应bean")
public class CommonVoResp<T> implements Serializable {

    //响应码
    @ApiModelProperty(value = "响应码")
    private Integer code=ResultEnum.SUCCESS.getCode();

    //响应信息
    @ApiModelProperty(value = "响应信息")
    private String message=ResultEnum.SUCCESS.getMsg();

    //版本号
    @ApiModelProperty(value="版本号")
    private String version="1.0";

    //响应bean
    @ApiModelProperty(value = "响应的result结果")
    private T data;

}
